package com.echoplots.shardingjdbc.controller;

import javax.annotation.Resource;

import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.echoplots.shardingjdbc.pojo.Config;
import com.echoplots.shardingjdbc.service.ConfigService;

@RestController
public class ConfigController {
    @Resource
    private ConfigService configService;
    @GetMapping("/config")
    public Config selectByPrimaryKey(){
        long id = 1L;
        Config config = configService.selectByPrimaryKey(id);
        return config;
    }
}
